﻿/// <reference path="jquery-2.1.4.min.js" />
/// <reference path="createjs.js" />

var bgW = $(window).width();
bgW = 640;
var bgH = $(window).height();
//$("#shipin").attr({"width":bgW,"height":bgH});
var stage = new createjs.Stage("gameView");
var Container0 = new createjs.Container;
var Container1 = new createjs.Container;
var Container2 = new createjs.Container;
var Container6 = new createjs.Container;
var Container7 = new createjs.Container;
var Container8 = new createjs.Container;
var Container81 = new createjs.Container;
var Container82 = new createjs.Container;
var Container83 = new createjs.Container;
var Container9 = new createjs.Container;
var Container10 = new createjs.Container;
var Container11 = new createjs.Container;
var imgContainer = new createjs.Container;
var imgnewContainer = new createjs.Container;
var queue = new createjs.LoadQueue();
createjs.Sound.alternateExtensions = ["mp3,wav"];
queue.installPlugin(createjs.Sound);
var LoadCanvas = function() {

	/////////////////////////启动触摸
	createjs.Touch.enable(stage);
	queue.loadManifest(loadImg, true, "image/");
	queue.on("progress", function(event) {
		if (queue.progress.toString().length > 4) {
			progress = queue.progress.toString().substr(2, 2);
		} else {
			if (queue.progress.toString().length == 3 || queue.progress.toString().length == 4) {
				progress = queue.progress * 100;
			}

			progress = queue.progress;
		}
		if (progress.toString().indexOf(".") <= 0) {
			if (progress == "00") {
				progress = "0";
			}
			//          baifenbi.text = progress + "%";
			if (progress == "1") {
				progress = "100";
				$(".loading_logo").css("display", "none");
				$(".loading_start_logo").show();
				$(".loading_start_logo").click(function(){
					$("#shipindiv").css({"display":"block","z-index":1});
					var shipin = document.getElementById("shipin");
					shipin.currentTime=78;
				  	shipin.play();
				  	$(shipin).on('ended',function(){
				  		$("#shipindiv,.loading").hide();
				  		Load6();
				   	})
				  	
				  	shengyin.play();
				  	music = true;
				  	$("#tubiao").attr("src","image/play.png");
//					$("#shipindiv,.loading").hide();
				})
			}
			$(".jindutiao").html(progress + "%");
		}

	});
	queue.on("complete", handleComplete, this);
}
//var bg,logo1,logo2;
var handleComplete = function() {
	Load0();
	
	createjs.Ticker.setFPS(60);
	createjs.Ticker.addEventListener("tick", function(event) {
		stage.update();
	})
}

var Load1 = function(){
	stage.addChild(Container1);
	var p1 = new createjs.Bitmap(queue.getResult("p1"));
	p1.scaleX = bgW/p1.getBounds().width;p1.scaleY = bgH/p1.getBounds().height;
	
	var p1_bijiben = new createjs.Bitmap(queue.getResult("p1_bijiben"));
	p1_bijiben.x = (bgW-p1_bijiben.getBounds().width)/2+30;
	p1_bijiben.y = bgH/2-p1_bijiben.getBounds().height;
	var p1_bolang = new createjs.Bitmap(queue.getResult("p1_bolang"));
	p1_bolang.x = p1_bijiben.x +170;p1_bolang.y = p1_bijiben.y + 50;
	var p1_wenzi = new createjs.Bitmap(queue.getResult("p1_wenzi"));
	p1_wenzi.x = (bgW-p1_wenzi.getBounds().width)/2;
	p1_wenzi.y = bgH/2 + 80;
	
	Container1.addChild(p1,p1_bijiben,p1_bolang,p1_wenzi);
	Container1.addEventListener("mousedown",function(){
		stage.removeChild(Container1);
		Load6();
	})
}
var p6_kuang,p9_bg;
var Load0 = function(){
	var p6 = new createjs.Bitmap(queue.getResult("p6"));
	p6.scaleX = bgW/p6.getBounds().width;p6.scaleY = bgH/p6.getBounds().height;
	
	var spriteSheetgamebg1 = new createjs.SpriteSheet({
		framerate:30,
		"images":[queue.getResult("yuanpan")],
		"frames":{width:641,height:984,count:6},
		"animations":{
			"zhen1":[0,5,"zhen1",0.1],
			"zhen2":[41,41,"zhen2",0.2],
		}
	})
	var yuanpan = new createjs.Sprite(spriteSheetgamebg1,"zhen1");
	yuanpan.scaleX = bgW/641;
	yuanpan.scaleY = bgH/984;
	
	var p6_bg1 = new createjs.Bitmap(queue.getResult("p6_bg1"));
	p6_bg1.x = (bgW-p6_bg1.getBounds().width)/2;
	p6_bg1.y = 0;
	
	p6_kuang = new createjs.Bitmap(queue.getResult("p6_kuang"));
	p6_kuang.x = (bgW-p6_kuang.getBounds().width)/2;
	p6_kuang.y = 50;
	
	p9_bg = new createjs.Bitmap(queue.getResult("p9_bg"));
	p9_bg.scaleX = bgW/p9_bg.getBounds().width;
	p9_bg.scaleY = bgH/p9_bg.getBounds().height;
	p9_bg.alpha = 0;
	stage.addChild(p6,yuanpan,p9_bg,p6_kuang);
	
}
var Load6 = function(){
	stage.addChild(Container6);
	
	var p7_text1 = new createjs.Bitmap(queue.getResult("p7_text1"));
	p7_text1.x = p6_kuang.x + 95;p7_text1.y = p6_kuang.y + 260;
	var p7_text2 = new createjs.Bitmap(queue.getResult("p7_text2"));
	p7_text2.x = p6_kuang.x + 95;p7_text2.y = p6_kuang.y + 450;
	p7_text1.alpha = p7_text2.alpha = 0;
	
	var spriteSheetgamebg1 = new createjs.SpriteSheet({
		framerate:30,
		"images":[queue.getResult("ziti")],
		"frames":{width:640,height:371,count:42},
		"animations":{
			"zhen1":[0,41,"zhen2",0.2],
			"zhen2":[41,41,"zhen2",0.2],
		}
	})
	var ziti = new createjs.Sprite(spriteSheetgamebg1,"zhen1");
	ziti.x = 0;ziti.y = 60;
	
	Container6.addChild(p7_text1,ziti,p7_text2);
	
//	ziti.alpha = 1;
	ziti.gotoAndPlay();
	ziti.addEventListener("animationend",function(){
		createjs.Tween.get(p7_text2).to({y:p7_text2.y+10,alpha:1},500);
		setTimeout(Load8,3000);
	})
}
var Load8 = function(){
	stage.removeChild(Container6);
	p6_kuang.alpha = 0;
	stage.addChild(Container8);
	stage.addChild(Container81,Container82,Container83);
	var p8_text1 = new createjs.Bitmap(queue.getResult("p8_text1"));
	p8_text1.x = p6_kuang.x + 40;p8_text1.y = p6_kuang.y + 40;
	var p8_yuanquan = new createjs.Bitmap(queue.getResult("p8_yuanquan"));
	p8_yuanquan.x = p6_kuang.x + 35;p8_yuanquan.y = p6_kuang.y + 350;
	
	var spriteSheetgamebg1 = new createjs.SpriteSheet({
		framerate:30,
		"images":[queue.getResult("donghua1")],
		"frames":{width:640,height:1040,count:21},
		"animations":{
			"zhen1":[0,20,"zhen2",0.2],
			"zhen2":[20,20,"zhen2",0.2],
		}
	})
	var donghua1 = new createjs.Sprite(spriteSheetgamebg1,"zhen1");
	donghua1.x = 0;
	donghua1.y = 50;
	
	var spriteSheetgamebg2 = new createjs.SpriteSheet({
		framerate:30,
		"images":[queue.getResult("donghua2")],
		"frames":{width:640,height:1040,count:7},
		"animations":{
			"zhen1":[0,6,"zhen1",0.2],
			"zhen2":[20,20,"zhen2",0.2],
		}
	})
	var donghua2 = new createjs.Sprite(spriteSheetgamebg2,"zhen1");
	donghua2.x = 0;
	donghua2.y = 50;
	donghua2.alpha = 0;
	donghua2.gotoAndStop();
	
	
	var p8_yuanquan_text1 = new createjs.Bitmap(queue.getResult("p8_yuanquan_text1"));
	p8_yuanquan_text1.x = donghua1.x + 250;p8_yuanquan_text1.y = donghua1.y +290;
	var p8_yuanquan_text2 = new createjs.Bitmap(queue.getResult("p8_yuanquan_text2"));
	p8_yuanquan_text2.x = donghua1.x + 490;p8_yuanquan_text2.y = donghua1.y + 610;
	var p8_yuanquan_text3 = new createjs.Bitmap(queue.getResult("p8_yuanquan_text3"));
	p8_yuanquan_text3.x = donghua1.x + 110;p8_yuanquan_text3.y = donghua1.y + 730;
	var p8_yuanquan_text4 = new createjs.Bitmap(queue.getResult("p8_yuanquan_text4"));
	p8_yuanquan_text4.x = donghua1.x + 189;p8_yuanquan_text4.y = donghua1.y + 391;
	var shape_p8_text1 = new createjs.Shape;
	
	var p8_anniu = new createjs.Bitmap(queue.getResult("p8_anniu"));
	p8_anniu.x = (bgW-p8_anniu.getBounds().width)/2;
	p8_anniu.y = donghua2.y + 880;
		shape_p8_text1.graphics.beginFill("black").drawRect(p8_yuanquan_text1.x,p8_yuanquan_text1.y,p8_yuanquan_text1.getBounds().width,p8_yuanquan_text1.getBounds().height);
	var shape_p8_text2 = new createjs.Shape;
	shape_p8_text2.graphics.beginFill("black").drawRect(p8_yuanquan_text2.x,p8_yuanquan_text2.y,p8_yuanquan_text2.getBounds().width,p8_yuanquan_text2.getBounds().height);
	var shape_p8_text3 = new createjs.Shape;
	shape_p8_text3.graphics.beginFill("red").drawRect(p8_yuanquan_text3.x,p8_yuanquan_text3.y,p8_yuanquan_text3.getBounds().width,p8_yuanquan_text3.getBounds().height);
	shape_p8_text1.alpha = shape_p8_text2.alpha = shape_p8_text3.alpha = 0.01;
	
	var shape8 = new createjs.Shape;
	shape8.graphics.beginFill("black").drawRect(0,0,bgW,bgH);
	
	shape8.alpha = 0.01;
	
	Container8.addChild(p8_text1,donghua1,donghua2,p8_anniu,p8_yuanquan_text1,p8_yuanquan_text2,p8_yuanquan_text3,shape8,shape_p8_text1,shape_p8_text2,shape_p8_text3);
	
	
	var shape1 = new createjs.Shape;
	shape1.graphics.beginFill("#100b28").drawRect(0,0,bgW,bgH);
	
	var shape81 = new createjs.Shape;
	shape81.graphics.beginFill("#07031f").drawRect(30,bgH-720,589,693);
	var p8_1_text3 = new createjs.Bitmap(queue.getResult("p8_1_text3"));
	p8_1_text3.x = 50;p8_1_text3.y = bgH-720+80;
	var p8_1_text1 = new createjs.Bitmap(queue.getResult("p8_1_text1"));
	p8_1_text1.x = 40;
	p8_1_text1.y = (bgH-720-p8_1_text1.getBounds().height)/2;
	var p8_1_text2 = new createjs.Bitmap(queue.getResult("p8_1_text2"));
	p8_1_text2.x = p8_1_text1.x +p8_1_text1.getBounds().width+30;
	p8_1_text2.y = p8_1_text1.y +45;
	var close1 = new createjs.Shape;
	close1.graphics.beginFill("#187c8f").drawRect(bgW-80,30,55,55);
	var p8_guanbi1 = new createjs.Bitmap(queue.getResult("p8_guanbi"));
	p8_guanbi1.x = bgW-80;p8_guanbi1.y = 30;
	Container81.addChild(shape1,shape81,p8_1_text3,p8_1_text1,p8_1_text2,close1,p8_guanbi1);
	Container81.alpha = 0;
	
	shape_p8_text1.addEventListener("mousedown",function(){
		Container81.alpha = 1;
	})
	close1.addEventListener("mousedown",function(){
		Container81.alpha = 0;
	})
	
	var shape2 = new createjs.Shape;
	shape2.graphics.beginFill("#100b28").drawRect(0,0,bgW,bgH);
	var shape82 = new createjs.Shape;
	shape82.graphics.beginFill("#07031f").drawRect(30,bgH-720,589,693);
	var p8_2_text3 = new createjs.Bitmap(queue.getResult("p8_2_text3"));
	p8_2_text3.x = 50;p8_2_text3.y = bgH-720+120;
	var p8_2_text1 = new createjs.Bitmap(queue.getResult("p8_2_text1"));
	p8_2_text1.x = 40;
	p8_2_text1.y = (bgH-720-p8_2_text1.getBounds().height)/2;
	var p8_2_text2 = new createjs.Bitmap(queue.getResult("p8_2_text2"));
	p8_2_text2.x = p8_2_text1.x +p8_2_text1.getBounds().width+30;
	p8_2_text2.y = p8_2_text1.y +30;
	var close2 = new createjs.Shape;
	close2.graphics.beginFill("#187c8f").drawRect(bgW-80,30,55,55);
	var p8_guanbi2 = new createjs.Bitmap(queue.getResult("p8_guanbi"));
	p8_guanbi2.x = bgW-80;p8_guanbi2.y = 30;
	Container82.addChild(shape2,shape82,p8_2_text3,p8_2_text1,p8_2_text2,close2,p8_guanbi2);
	Container82.alpha = 0;
	shape_p8_text2.addEventListener("mousedown",function(){
		Container82.alpha = 1;
	})
	close2.addEventListener("mousedown",function(){
		Container82.alpha = 0;
	})
	
	var shape3 = new createjs.Shape;
	shape3.graphics.beginFill("#100b28").drawRect(0,0,bgW,bgH);
	var shape83 = new createjs.Shape;
	shape83.graphics.beginFill("#07031f").drawRect(30,bgH-720,589,693);
	var p8_3_text3 = new createjs.Bitmap(queue.getResult("p8_3_text3"));
	p8_3_text3.x = 40;p8_3_text3.y = bgH-720+80;
	var p8_3_text1 = new createjs.Bitmap(queue.getResult("p8_3_text1"));
	p8_3_text1.x = 50;
	p8_3_text1.y = (bgH-720-p8_3_text1.getBounds().height)/2;
	var p8_3_text2 = new createjs.Bitmap(queue.getResult("p8_3_text2"));
	p8_3_text2.x = p8_3_text1.x +p8_3_text1.getBounds().width+30;
	p8_3_text2.y = p8_3_text1.y +30;
	var close3 = new createjs.Shape;
	close3.graphics.beginFill("#187c8f").drawRect(bgW-80,30,55,55);
	var p8_guanbi3 = new createjs.Bitmap(queue.getResult("p8_guanbi"));
	p8_guanbi3.x = bgW-80;p8_guanbi3.y = 30;
	Container83.addChild(shape3,shape83,p8_3_text3,p8_3_text1,p8_3_text2,close3,p8_guanbi3);
	Container83.alpha = 0;
	shape_p8_text3.addEventListener("mousedown",function(){
		Container83.alpha = 1;
	})
	shape1.addEventListener("mousedown",function(){
		return;
	})
	shape2.addEventListener("mousedown",function(){
		return;
	})
	shape3.addEventListener("mousedown",function(){
		return;
	})
	close3.addEventListener("mousedown",function(){
		Container83.alpha = 0;
	})
	p8_anniu.addEventListener("mousedown",function(){
		Container8.alpha = Container81.alpha = Container82.alpha = Container83.alpha = 0;
		Load9();
	})
	p8_text1.alpha = p8_yuanquan.alpha = p8_yuanquan_text1.alpha = p8_yuanquan_text2.alpha = p8_yuanquan_text3.alpha = p8_yuanquan_text4.alpha = 0;
	createjs.Tween.get(p8_text1).to({y:p8_text1.y+8,alpha:1},500);
	
	var over = false;
	donghua1.addEventListener("animationend",function(){
		if(!over)
		{
			over = true;
			donghua1.alpha = 0;
			donghua2.alpha = 1;
			donghua2.gotoAndPlay();
			
			createjs.Tween.get(p8_yuanquan_text1).to({alpha:1},500);
			createjs.Tween.get(p8_yuanquan_text2).to({alpha:1},1000);
			createjs.Tween.get(p8_yuanquan_text3).to({alpha:1},1500).call(function(){
				var jishi = 1000;
				createjs.Tween.get(donghua2,{loop:true}).to({y:donghua2.y+5},jishi).to({y:donghua2.y+0},jishi).to({y:donghua2.y-5},jishi).to({y:donghua2.y+0},jishi)
				createjs.Tween.get(p8_yuanquan_text1,{loop:true}).to({y:p8_yuanquan_text1.y+5},jishi).to({y:p8_yuanquan_text1.y+0},jishi).to({y:p8_yuanquan_text1.y-5},jishi).to({y:p8_yuanquan_text1.y+0},jishi)
				createjs.Tween.get(p8_yuanquan_text2,{loop:true}).to({y:p8_yuanquan_text2.y+5},jishi).to({y:p8_yuanquan_text2.y+0},jishi).to({y:p8_yuanquan_text2.y-5},jishi).to({y:p8_yuanquan_text2.y+0},jishi)
				createjs.Tween.get(p8_yuanquan_text3,{loop:true}).to({y:p8_yuanquan_text3.y+5},jishi).to({y:p8_yuanquan_text3.y+0},jishi).to({y:p8_yuanquan_text3.y-5},jishi).to({y:p8_yuanquan_text3.y+0},jishi)
			});
		
		}
	})
	
}
var Load9 = function(){
	p6_kuang.alpha = p9_bg.alpha = 1;
	stage.addChild(Container9);
	var p9_text1 = new createjs.Bitmap(queue.getResult("p9_text1"));
	p9_text1.x = p6_kuang.x + 190;p9_text1.y = p6_kuang.y +10;
	
	var p9_text2 = new createjs.Bitmap(queue.getResult("p9_text2"));
	p9_text2.x = p6_kuang.x + 98;p9_text2.y = p6_kuang.y +527;
	
	var p9_text3 = new createjs.Bitmap(queue.getResult("p9_text3"));
	p9_text3.x = p6_kuang.x + 136;p9_text3.y = p6_kuang.y +280;
	
	var p9_text4 = new createjs.Bitmap(queue.getResult("p9_text4"));
	p9_text4.x = p6_kuang.x + 136;p9_text4.y = p6_kuang.y +350;
	
	var p9_text5 = new createjs.Bitmap(queue.getResult("p9_text5"));
	p9_text5.x = p6_kuang.x + 180;p9_text5.y = p6_kuang.y +422;
	
	var p9_text6 = new createjs.Bitmap(queue.getResult("p9_text6"));
	p9_text6.x = p6_kuang.x + 137;p9_text6.y = p6_kuang.y +687;
	$("#erweima").css({"display":"none","left":p6_kuang.x+217,"top":p6_kuang.y+492});
	Container9.addChild(p9_text1,p9_text2,p9_text2,p9_text3,p9_text4,p9_text5,p9_text6);
	p9_text6.addEventListener("mousedown",function(){
		$("#erweima").css("display","none");
		Container9.alpha = 0;
		Load10();
	})
	p9_text1.alpha =p9_text2.alpha =p9_text3.alpha =p9_text4.alpha =p9_text5.alpha =p9_text6.alpha =0;
	var jishi = 800;
	var juli = 8;
	createjs.Tween.get(p9_text1).to({alpha:1,y:p9_text1.y+juli},jishi).call(function(){
		createjs.Tween.get(p9_text4).to({x:p9_text4.x+juli}).to({alpha:1,x:p9_text4.x},jishi);
		createjs.Tween.get(p9_text3).to({x:p9_text3.x-juli}).to({alpha:1,x:p9_text3.x},jishi).call(function(){
			createjs.Tween.get(p9_text5).to({alpha:1,y:p9_text5.y+juli},jishi).call(function(){
				createjs.Tween.get(p9_text2).to({alpha:1},jishi).call(function(){
					createjs.Tween.get(p9_text6).to({alpha:1},jishi).call(function(){

					})
				})
				
			})
		})
	})
	
}
var Load10 = function(){
	p9_bg.alpha = 1;
	stage.addChild(Container10);
	var p10_text1 = new createjs.Bitmap(queue.getResult("p10_text1"));
	p10_text1.x = p6_kuang.x + 190;p10_text1.y = p6_kuang.y +10;
	var p10_text2 = new createjs.Bitmap(queue.getResult("p10_text2"));
	p10_text2.x = p6_kuang.x + 93;p10_text2.y = p6_kuang.y +121;
	var p10_text3 = new createjs.Bitmap(queue.getResult("p10_text3"));
	p10_text3.x = p6_kuang.x + 44;p10_text3.y = p6_kuang.y +197;
	var p10_text4 = new createjs.Bitmap(queue.getResult("p10_text4"));
	p10_text4.x = p6_kuang.x + 136;p10_text4.y = p6_kuang.y +274;
	var p10_text5 = new createjs.Bitmap(queue.getResult("p10_text5"));
	p10_text5.x = p6_kuang.x + 72;p10_text5.y = p6_kuang.y +450;
	$("#info").css({"left":p10_text5.x+110,"top":p10_text5.y+0,"display":"block"});
	var p10_text6 = new createjs.Bitmap(queue.getResult("p10_text6"));
	p10_text6.x = p6_kuang.x + 135;p10_text6.y = p6_kuang.y +687;
	
	Container10.addChild(p10_text1,p10_text4,p10_text5,p10_text6);
	p10_text6.addEventListener("mousedown",function(){
		Container10.alpha = 0;
		$("#fx_xingming").html($("#xingming").val());
		Load11();
	})
	p10_text1.alpha =p10_text2.alpha =p10_text3.alpha =p10_text4.alpha =p10_text5.alpha =p10_text6.alpha =0;
	var jishi = 800;
	var juli = 8;
	createjs.Tween.get(p10_text1).to({y:p10_text1.y-juli}).to({alpha:1,y:p10_text1.y},jishi).call(function(){
		createjs.Tween.get(p10_text2).to({alpha:1},0).call(function(){
			createjs.Tween.get(p10_text3).to({alpha:1,x:p10_text3.x},0).call(function(){
				createjs.Tween.get(p10_text4).to({y:p10_text4.y-juli}).to({alpha:1,y:p10_text4.y},jishi);
				createjs.Tween.get(p10_text5).to({y:p10_text5.y+juli}).to({alpha:1,y:p10_text5.y},jishi).call(function(){
					createjs.Tween.get(p10_text6).to({alpha:1},jishi).call(function(){
	
					})
				})
			})
		})
	})
}
var Load11 = function(){
	$("#info").css("display","none");
	
	stage.addChild(Container11);
	var p11_text1 = new createjs.Bitmap(queue.getResult("p11_text1"));
	p11_text1.x = p6_kuang.x + 190;p11_text1.y = p6_kuang.y +0;
	var p11_text2 = new createjs.Bitmap(queue.getResult("p11_text2"));
	p11_text2.x = p6_kuang.x + 140;p11_text2.y = p6_kuang.y +238;
	var p11_text3 = new createjs.Bitmap(queue.getResult("p11_text3"));
	p11_text3.x = p6_kuang.x + 140;p11_text3.y = p6_kuang.y +310;
	var p11_text4 = new createjs.Bitmap(queue.getResult("p11_text4"));
	p11_text4.x = p6_kuang.x + 81;p11_text4.y = p6_kuang.y +385;
	var p11_text5 = new createjs.Bitmap(queue.getResult("p11_text5"));
	p11_text5.x = p6_kuang.x + 128;p11_text5.y = p6_kuang.y +687;
	var p11_text6 = new createjs.Bitmap(queue.getResult("p11_text6"));
	p11_text6.x = p6_kuang.x + 100;p11_text6.y = p6_kuang.y +760;
	var p11_text7 = new createjs.Bitmap(queue.getResult("p11_text7"));
	p11_text7.x = p6_kuang.x + 210;p11_text7.y = p6_kuang.y +860;
	$("#fx_xingming").css({"display":"block","top":p6_kuang.y+385});
	
	var shape = new createjs.Shape;
	shape.graphics.beginFill("black").drawRect(0,0,bgW,bgH);
	var p11_share = new createjs.Bitmap(queue.getResult("p11_share"));
	p11_share.x = bgW - p11_share.getBounds().width - 30;p11_share.y = 30;
	shape.alpha = p11_share.alpha = 0;
	Container11.addChild(p11_text1,p11_text2,p11_text3,p11_text4,p11_text5,p11_text6,p11_text7,shape,p11_share);
	p11_text5.addEventListener("mousedown",function(){
		shape.alpha = 0.8;p11_share.alpha = 1;
		$("#fx_xingming,#erweima").css("display","none");
	})
	shape.addEventListener("mousedown",function(){
		shape.alpha = p11_share.alpha = 0;
		$("#fx_xingming,#erweima").css("display","block");
	})
	p11_text1.alpha =p11_text2.alpha =p11_text3.alpha =p11_text4.alpha =p11_text5.alpha =p11_text6.alpha=p11_text7.alpha =0;
	var jishi = 800;
	var juli = 8;
	$("#fx_xingming").hide();
	$("#erweima").css({"display":"none","left":p6_kuang.x+215,"top":p6_kuang.y+533});
	createjs.Tween.get(p11_text1).to({y:p11_text1.y-juli}).to({alpha:1,y:p11_text1.y},jishi).call(function(){
		createjs.Tween.get(p11_text3).to({x:p11_text3.x+juli}).to({alpha:1,x:p11_text3.x},jishi);
		createjs.Tween.get(p11_text2).to({x:p11_text2.x-juli}).to({alpha:1,x:p11_text2.x},jishi).call(function(){
			createjs.Tween.get(p11_text4).to({y:p11_text4.y-juli}).to({alpha:1,y:p11_text4.y},jishi).call(function(){
				$("#fx_xingming").show();
				$("#erweima").show();
				createjs.Tween.get(p11_text5).to({alpha:1},jishi).call(function(){
					createjs.Tween.get(p11_text6).to({x:p11_text6.x-juli}).to({alpha:1,x:p11_text6.x},jishi);
					createjs.Tween.get(p11_text7).to({x:p11_text7.x+juli}).to({alpha:1,x:p11_text7.x},jishi);
				})
			});
		})
	})
}














































































